﻿using System;
using System.Collections.Generic;

namespace ExcelConfig.Config
{
    public class ExcelRead
    {
        public static IEnumerable<ExcelRow> Query(string path, string sheet)
        {
            foreach (var row in MiniExcel.Query(path, true, sheet))
            {
                var r = new ExcelRow(row as object);
                if (!r.OK) continue;
                yield return r;
            }
        }
    }
}
